package com.winning.platwebservice.controller;

import com.winning.platwebservice.service.IDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class DataServiceController {

    @Autowired
    private IDataService dataService;

    /**
     * 数据上传接口
     *
     * @param
     * @param
     * @return
     */
    @RequestMapping(value = "/DataService", method = RequestMethod.POST)
    public String DataService(HttpServletRequest request, @RequestBody String params) {
        return dataService.DataService(params);
    }
    
}
